﻿using System.Data.Objects;
using Marketplace.Engine.Model;

namespace Marketplace.Engine.Repository
{
    public abstract class PropertyRepository<T> : MarketplaceRepository<T, Property> where T : Property
    {
        protected override ObjectSet<Property> CreateObjectSet(ObjectContext context)
        {
            var marketplaceContext = (MarketplaceContext)context;
            return  marketplaceContext.Properties;
        }
    }
}